﻿using System;
using System.Collections.Generic;
using System.Text;
using ScrewTurn.Wiki.PluginFramework;
using System.Data.SqlClient;

namespace ScrewTurn.Wiki.PluginPack
{
	public abstract class NMRExperimentFormatterBase
	{
		protected string config;
		protected IHost host;

		//Required function for ScrewTurn Wiki.
		public void Init(IHost host, string config)
		{
			this.host = host;
			this.config = config;
			if (!ValidateConfig())
				throw new InvalidConfigurationException();
		}
		//Required function for ScrewTurn Wiki.
		public void Shutdown() { }

		protected abstract bool ValidateConfig();
	}
}
